PiPo - Plugin Interface for Processing Objects
Public Member Functions | List of all members
PiPoScalarAttr< TYPE > Class Template Reference
Inheritance diagram for PiPoScalarAttr< TYPE >:
[legend]
Collaboration diagram for PiPoScalarAttr< TYPE >:
[legend]

Public Member Functions

 PiPoScalarAttr (PiPo *pipo, const char *name, const char *descr, bool changesStream, TYPE initVal=(TYPE) 0)
 
void set (TYPE value, bool silently=false)
 
TYPE get (void)
 
void clone (Attr *other)
 
unsigned int setSize (unsigned int size)
 
unsigned int getSize (void)
 
void set (unsigned int i, int val, bool silently=false)
 
void set (unsigned int i, double val, bool silently=false)
 
void set (unsigned int i, const char *val, bool silently=false)
 
int getInt (unsigned int i=0)
 
double getDbl (unsigned int i=0)
 
const char * getStr (unsigned int i=0)
 
- Public Member Functions inherited from PiPo::Attr
 Attr (PiPo *pipo, const char *name, const char *descr, const std::type_info *type, bool changesStream)
 PiPo attribute base class. More...
 
 ~Attr (void)
 
void setIndex (unsigned int index)
 
void setName (const char *name)
 
void setDescr (const char *descr)
 
unsigned int getIndex (void)
 
const char * getName (void)
 
const char * getDescr (void)
 
enum Type getType (void)
 
bool doesChangeStream (void)
 
virtual void clone (Attr *other)=0
 
virtual std::vector< const
char * > * 
getEnumList (void)
 
void changed (bool silently=false)
 
void rename (const char *name)
 

Constructor & Destructor Documentation

template<typename TYPE >
PiPoScalarAttr< TYPE >::PiPoScalarAttr ( PiPo pipo,
const char *  name,
const char *  descr,
bool  changesStream,
TYPE  initVal = (TYPE)0 
)
inline

Member Function Documentation

template<typename TYPE >
void PiPoScalarAttr< TYPE >::clone ( Attr other)
inline
template<typename TYPE >
TYPE PiPoScalarAttr< TYPE >::get ( void  )
inline
template<typename TYPE >
double PiPoScalarAttr< TYPE >::getDbl ( unsigned int  i = 0)
inlinevirtual

Implements PiPo::Attr.

template<typename TYPE >
int PiPoScalarAttr< TYPE >::getInt ( unsigned int  i = 0)
inlinevirtual

Implements PiPo::Attr.

template<typename TYPE >
unsigned int PiPoScalarAttr< TYPE >::getSize ( void  )
inlinevirtual

Implements PiPo::Attr.

Here is the caller graph for this function:

template<typename TYPE >
const char* PiPoScalarAttr< TYPE >::getStr ( unsigned int  i = 0)
inlinevirtual

Implements PiPo::Attr.

template<typename TYPE >
void PiPoScalarAttr< TYPE >::set ( TYPE  value,
bool  silently = false 
)
inline

Here is the call graph for this function:

template<typename TYPE >
void PiPoScalarAttr< TYPE >::set ( unsigned int  i,
int  val,
bool  silently = false 
)
inlinevirtual

Implements PiPo::Attr.

Here is the call graph for this function:

template<typename TYPE >
void PiPoScalarAttr< TYPE >::set ( unsigned int  i,
double  val,
bool  silently = false 
)
inlinevirtual

Implements PiPo::Attr.

Here is the call graph for this function:

template<typename TYPE >
void PiPoScalarAttr< TYPE >::set ( unsigned int  i,
const char *  val,
bool  silently = false 
)
inlinevirtual

Implements PiPo::Attr.

template<typename TYPE >
unsigned int PiPoScalarAttr< TYPE >::setSize ( unsigned int  size)
inlinevirtual

Implements PiPo::Attr.

Here is the call graph for this function: