nomlib
Loading...
Searching...
No Matches
nom::Drawables Class Reference

Public Types

typedef Drawables self_type
typedef self_type * raw_ptr
typedef std::unique_ptr< self_type > unique_ptr
typedef std::shared_ptr< self_type > shared_ptr
typedef IDrawable value_type
typedef std::vector< value_type::shared_ptrcontainer
typedef container::iterator iterator
typedef container::const_iterator const_iterator

Public Member Functions

 Drawables (void)
 Default constructor.
 ~Drawables (void)
 Destructor.
 Drawables (const Drawables::container &object)
 Constructor to ...
const container & drawables (void) const
bool updated (void) const
 Getter for internal updated status.
void set_updated (bool state)
 Set the internal updated status.
void assign (const container &objects)
void insert (uint pos, const value_type::raw_ptr object)
void push_back (const value_type::raw_ptr object)
const value_type::shared_ptrat (uint pos)
Drawables::iterator erase (uint pos)
bool empty (void) const
uint size (void) const
void clear (void)
Drawables::const_iterator begin (void) const
 Iterator access to the beginning of the render list.
Drawables::const_iterator end (void) const
 Iterator access to the end of the render list.
Drawables::iterator begin (void)
 Iterator access to the beginning of the render list.
Drawables::iterator end (void)
 Iterator access to the end of the render list.

Private Attributes

container drawables_
bool updated_
 Internal object state; we re-create drawable objects every time the internal state changes in order to save as many CPU cycles.

Detailed Description

Definition at line 41 of file Drawables.hpp.

Member Typedef Documentation

◆ const_iterator

typedef container::const_iterator nom::Drawables::const_iterator

Definition at line 54 of file Drawables.hpp.

◆ container

typedef std::vector<value_type::shared_ptr> nom::Drawables::container

Definition at line 51 of file Drawables.hpp.

◆ iterator

typedef container::iterator nom::Drawables::iterator

Definition at line 53 of file Drawables.hpp.

◆ raw_ptr

typedef self_type* nom::Drawables::raw_ptr

Definition at line 46 of file Drawables.hpp.

◆ self_type

typedef Drawables nom::Drawables::self_type

Definition at line 44 of file Drawables.hpp.

◆ shared_ptr

typedef std::shared_ptr<self_type> nom::Drawables::shared_ptr

Definition at line 48 of file Drawables.hpp.

◆ unique_ptr

typedef std::unique_ptr<self_type> nom::Drawables::unique_ptr

Definition at line 47 of file Drawables.hpp.

◆ value_type

typedef IDrawable nom::Drawables::value_type

Definition at line 50 of file Drawables.hpp.

Member Function Documentation

◆ begin() [1/2]

Drawables::iterator nom::Drawables::begin ( void )

Iterator access to the beginning of the render list.

Returns
nom::Drawables object iterator.

◆ begin() [2/2]

Drawables::const_iterator nom::Drawables::begin ( void ) const

Iterator access to the beginning of the render list.

Returns
Non-modifiable (const) nom::Drawables object iterator.

◆ end() [1/2]

Drawables::iterator nom::Drawables::end ( void )

Iterator access to the end of the render list.

Returns
nom::Drawables object iterator.

◆ end() [2/2]

Drawables::const_iterator nom::Drawables::end ( void ) const

Iterator access to the end of the render list.

Returns
Non-modifiable (const) nom::Drawables object iterator.

Member Data Documentation

◆ drawables_

container nom::Drawables::drawables_
private

Definition at line 110 of file Drawables.hpp.

◆ updated_

bool nom::Drawables::updated_
private

Internal object state; we re-create drawable objects every time the internal state changes in order to save as many CPU cycles.

Definition at line 114 of file Drawables.hpp.


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