GUIDOLib  1.7.7
Guido Engine Internal Documentation
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KF_Vector< TYPE > Class Template Reference

Public Member Functions

 KF_Vector (TYPE p_noelement)
 
 KF_Vector (TYPE p_noelement, TYPE *newdata, int newmemsize, int newindexoffset, int newminimum, int newmaximum, int newcount)
 
virtual ~KF_Vector ()
 
int size () const
 
bool empty () const
 
void RemoveAll ()
 
int GetNextIndex (int index) const
 
void Set (int index, TYPE mydata)
 
virtual void Cut (int index, KF_Vector< TYPE > **pnew)
 Cuts a vector in two. More...
 
virtual void Delete (int index)
 Deletes an Element at position index. More...
 
TYPE Get (int index) const
 Returns element[index] if existing and noelement if element[index] doesn't exist. More...
 
int GetMaximum () const
 
int GetMinimum () const
 
int GetCount () const
 

Protected Member Functions

void Resize (int index)
 

Protected Attributes

TYPE noelement
 
int maximum
 
int minimum
 
int count
 
int indexoffset
 
TYPE * data
 
int memsize
 

Constructor & Destructor Documentation

◆ KF_Vector() [1/2]

template<class TYPE>
KF_Vector< TYPE >::KF_Vector ( TYPE  p_noelement)

◆ KF_Vector() [2/2]

template<class TYPE>
KF_Vector< TYPE >::KF_Vector ( TYPE  p_noelement,
TYPE *  newdata,
int  newmemsize,
int  newindexoffset,
int  newminimum,
int  newmaximum,
int  newcount 
)

◆ ~KF_Vector()

template<class TYPE>
virtual KF_Vector< TYPE >::~KF_Vector ( )
inlinevirtual

Member Function Documentation

◆ Cut()

template<class TYPE>
void KF_Vector< TYPE >::Cut ( int  index,
KF_Vector< TYPE > **  pnew 
)
virtual

Cuts a vector in two.

The old vector reaches from minimum to index, the new vector (which is constructed within the function) ranges from index+1 till maximum.

◆ Delete()

template<class TYPE >
void KF_Vector< TYPE >::Delete ( int  index)
virtual

◆ empty()

template<class TYPE>
bool KF_Vector< TYPE >::empty ( ) const
inline

◆ Get()

template<class TYPE >
TYPE KF_Vector< TYPE >::Get ( int  index) const

Returns element[index] if existing and noelement if element[index] doesn't exist.

◆ GetCount()

template<class TYPE>
int KF_Vector< TYPE >::GetCount ( ) const
inline

◆ GetMaximum()

template<class TYPE>
int KF_Vector< TYPE >::GetMaximum ( ) const
inline

◆ GetMinimum()

template<class TYPE>
int KF_Vector< TYPE >::GetMinimum ( ) const
inline

◆ GetNextIndex()

template<class TYPE >
int KF_Vector< TYPE >::GetNextIndex ( int  index) const

◆ RemoveAll()

template<class TYPE >
void KF_Vector< TYPE >::RemoveAll ( )

◆ Resize()

template<class TYPE >
void KF_Vector< TYPE >::Resize ( int  index)
protected

◆ Set()

template<class TYPE>
void KF_Vector< TYPE >::Set ( int  index,
TYPE  mydata 
)

◆ size()

template<class TYPE>
int KF_Vector< TYPE >::size ( ) const
inline

Member Data Documentation

◆ count

template<class TYPE>
int KF_Vector< TYPE >::count
protected

◆ data

template<class TYPE>
TYPE* KF_Vector< TYPE >::data
protected

◆ indexoffset

template<class TYPE>
int KF_Vector< TYPE >::indexoffset
protected

◆ maximum

template<class TYPE>
int KF_Vector< TYPE >::maximum
protected

◆ memsize

template<class TYPE>
int KF_Vector< TYPE >::memsize
protected

◆ minimum

template<class TYPE>
int KF_Vector< TYPE >::minimum
protected

◆ noelement

template<class TYPE>
TYPE KF_Vector< TYPE >::noelement
protected

Guido Project Copyright © 2019 Grame-CNCM