GCC Middle and Back End API Reference
text_art::directions Struct Reference

#include <types.h>

Public Member Functions

 directions (bool up, bool down, bool left, bool right)
size_t as_index () const

Data Fields

bool m_up: 1
bool m_down: 1
bool m_left: 1
bool m_right: 1

Detailed Description

A set of cardinal directions within a canvas or table.   

Constructor & Destructor Documentation

◆ directions()

text_art::directions::directions ( bool up,
bool down,
bool left,
bool right )
inline

References m_down, m_left, m_right, and m_up.

Member Function Documentation

◆ as_index()

size_t text_art::directions::as_index ( ) const
inline

References m_down, m_left, m_right, and m_up.

Referenced by text_art::get_box_drawing_char().

Field Documentation

◆ m_down

bool text_art::directions::m_down

◆ m_left

bool text_art::directions::m_left

◆ m_right

bool text_art::directions::m_right

◆ m_up

bool text_art::directions::m_up

The documentation for this struct was generated from the following file: