flux sdk  v01.02.02-3-g292b3a7
Embedded C++ SDK
Loading...
Searching...
No Matches
flxContainer< T > Class Template Reference

#include <flxCoreProps.h>

Inheritance diagram for flxContainer< T >:
flxObject flxPersist _flxPropertyContainer flxDescriptor flxFlux

Public Types

typedef std::vector< T >::iterator iterator
 

Public Member Functions

 flxContainer ()
 
auto size () -> decltype(_vector.size())
 
void push_back (T value)
 
void pop_back (void)
 
void insert (typename std::vector< T >::iterator it, T value)
 
auto back (void) -> decltype(_vector.back())
 
auto front () -> decltype(_vector.front())
 
T & at (size_t pos)
 
auto cbegin () -> decltype(_vector.cbegin())
 
auto cend () -> decltype(_vector.cend())
 
auto begin () -> decltype(_vector.begin())
 
auto end () -> decltype(_vector.end())
 
auto rbegin () -> decltype(_vector.rbegin())
 
auto rend () -> decltype(_vector.rend())
 
auto empty () -> decltype(_vector.empty())
 
iterator erase (iterator pos)
 
void remove (T value)
 
flxTypeID getType (void)
 
virtual bool save (flxStorage *pStorage)
 
virtual bool restore (flxStorage *pStorage)
 
- Public Member Functions inherited from flxObject
 flxObject ()
 
virtual ~flxObject ()
 
void setParent (flxObject *parent)
 
void setParent (flxObject &parent)
 
flxObjectparent ()
 
void setHidden (bool bHide=true)
 
bool hidden ()
 
void setIsDirty (bool bDirty=true)
 
bool isDirty (void)
 
virtual bool onSave (flxStorageBlock *stBlk)
 
virtual bool save (flxStorage *pStorage)
 
virtual bool onRestore (flxStorageBlock *stBlk)
 
virtual bool restore (flxStorage *pStorage)
 
virtual flxTypeID getType (void)
 
virtual bool save (flxStorage *)=0
 
virtual bool restore (flxStorage *)=0
 
- Public Member Functions inherited from _flxPropertyContainer
 _flxPropertyContainer ()
 
void addProperty (flxProperty *newProperty)
 
void addProperty (flxProperty &newProperty)
 
void removeProperty (flxProperty *rmProp)
 
void removeProperty (flxProperty &rmProp)
 
flxPropertyListgetProperties (void)
 
uint nProperties (void)
 
bool saveProperties (flxStorageBlock *stBlk)
 
bool restoreProperties (flxStorageBlock *stBlk)
 
size_t propertySaveSize ()
 
void hideProperty (flxProperty &theProp)
 
- Public Member Functions inherited from flxDescriptor
 flxDescriptor ()
 
void setName (const char *new_name)
 Set the Name object - storing the pointer to the provided string No allocation is performed. If the previous name was allocated, it is freed. More...
 
void setName (const char *new_name, const char *new_desc)
 Set the Name object and the Description for the object. Both strings are constants. More...
 
void setName (char *new_name)
 Set the Name object, but makes a copy of the input string since the input is not const. If the previous name was allocated, it is freed. More...
 
const char * name ()
 Return a const char pointer to the name of the object. More...
 
std::string name_ (void)
 Returns a std::string of the name of the object. More...
 
void setDescription (const char *new_desc)
 Set the Description object - the input value is constant and not copied. If the previous description was allocated, it is freed. More...
 
void setDescription (char *new_desc)
 Set the Description object - the input value is not constant and is copied. If the previous description was allocated, it is freed. More...
 
const char * description ()
 Return the constant C string pointer to the description of the object. More...
 
std::string description_ (void)
 Return the description of the object as a std::string. More...
 
void setTitle (const char *title)
 Set the Title object - the title is optional and is used mostly for UX or organizational purposes. The input value is constant and not copied. If the previous title was allocated, it is freed. More...
 
void setTitleAlloc (char *new_title)
 Set the Title of the object , but make an explict copy of the provided string. More...
 
const char * title (void)
 Return the C constant string pointer to the title of the object. More...
 

Static Public Member Functions

static flxTypeID type (void)
 
- Static Public Member Functions inherited from flxObject
static flxTypeID type (void)
 

Protected Attributes

std::vector< T > _vector
 
- Protected Attributes inherited from flxDescriptor
const char * _name
 
bool _nameAlloc
 
const char * _desc
 
bool _descAlloc
 
const char * _title
 
bool _titleAlloc
 

Member Typedef Documentation

◆ iterator

template<class T >
typedef std::vector<T>::iterator flxContainer< T >::iterator

Constructor & Destructor Documentation

◆ flxContainer()

template<class T >
flxContainer< T >::flxContainer ( )
inline

Member Function Documentation

◆ at()

template<class T >
T & flxContainer< T >::at ( size_t  pos)
inline

◆ back()

template<class T >
auto flxContainer< T >::back ( void  ) -> decltype(_vector.back())
inline

◆ begin()

template<class T >
auto flxContainer< T >::begin ( ) -> decltype(_vector.begin())
inline

◆ cbegin()

template<class T >
auto flxContainer< T >::cbegin ( ) -> decltype(_vector.cbegin())
inline

◆ cend()

template<class T >
auto flxContainer< T >::cend ( ) -> decltype(_vector.cend())
inline

◆ empty()

template<class T >
auto flxContainer< T >::empty ( ) -> decltype(_vector.empty())
inline

◆ end()

template<class T >
auto flxContainer< T >::end ( ) -> decltype(_vector.end())
inline

◆ erase()

template<class T >
iterator flxContainer< T >::erase ( iterator  pos)
inline

◆ front()

template<class T >
auto flxContainer< T >::front ( ) -> decltype(_vector.front())
inline

◆ getType()

template<class T >
flxTypeID flxContainer< T >::getType ( void  )
inlinevirtual

Reimplemented from flxObject.

◆ insert()

template<class T >
void flxContainer< T >::insert ( typename std::vector< T >::iterator  it,
value 
)
inline

◆ pop_back()

template<class T >
void flxContainer< T >::pop_back ( void  )
inline

◆ push_back()

template<class T >
void flxContainer< T >::push_back ( value)
inline

◆ rbegin()

template<class T >
auto flxContainer< T >::rbegin ( ) -> decltype(_vector.rbegin())
inline

◆ remove()

template<class T >
void flxContainer< T >::remove ( value)
inline

◆ rend()

template<class T >
auto flxContainer< T >::rend ( ) -> decltype(_vector.rend())
inline

◆ restore()

template<class T >
virtual bool flxContainer< T >::restore ( flxStorage pStorage)
inlinevirtual

Reimplemented from flxObject.

Reimplemented in flxFlux.

◆ save()

template<class T >
virtual bool flxContainer< T >::save ( flxStorage pStorage)
inlinevirtual

Reimplemented from flxObject.

Reimplemented in flxFlux.

◆ size()

template<class T >
auto flxContainer< T >::size ( ) -> decltype(_vector.size())
inline

◆ type()

template<class T >
static flxTypeID flxContainer< T >::type ( void  )
inlinestatic

Member Data Documentation

◆ _vector

template<class T >
std::vector<T> flxContainer< T >::_vector
protected

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