casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::viewer::filter< T, CT > Class Template Reference

#include <elements.h>

Public Types

enum  comparisons {
  EQUAL,
  UNEQUAL
}
 

Public Member Functions

 filter (T compare_element, comparisons c=UNEQUAL)
 
void operator() (T ele)
 
 operator CT ()
 
void clear ()
 

Private Member Functions

bool equality (T ele)
 
bool inequality (T ele)
 

Private Attributes

comparitor
 
bool(filter< T, CT >::* op )(T)
 
CT cache
 

Detailed Description

template<typename T, typename CT = std::vector<T>>
class casa::viewer::filter< T, CT >

Definition at line 62 of file elements.h.

Member Enumeration Documentation

template<typename T, typename CT = std::vector<T>>
enum casa::viewer::filter::comparisons
Enumerator
EQUAL 
UNEQUAL 

Definition at line 64 of file elements.h.

Constructor & Destructor Documentation

template<typename T, typename CT = std::vector<T>>
casa::viewer::filter< T, CT >::filter ( compare_element,
comparisons  c = UNEQUAL 
)
inline

Member Function Documentation

template<typename T, typename CT = std::vector<T>>
void casa::viewer::filter< T, CT >::clear ( )
inline

Definition at line 74 of file elements.h.

References casa::viewer::filter< T, CT >::cache.

template<typename T, typename CT = std::vector<T>>
bool casa::viewer::filter< T, CT >::equality ( ele)
inlineprivate

Definition at line 78 of file elements.h.

References casa::viewer::filter< T, CT >::comparitor.

template<typename T, typename CT = std::vector<T>>
bool casa::viewer::filter< T, CT >::inequality ( ele)
inlineprivate

Definition at line 79 of file elements.h.

References casa::viewer::filter< T, CT >::comparitor.

template<typename T, typename CT = std::vector<T>>
casa::viewer::filter< T, CT >::operator CT ( )
inline

Definition at line 73 of file elements.h.

References casa::viewer::filter< T, CT >::cache.

template<typename T, typename CT = std::vector<T>>
void casa::viewer::filter< T, CT >::operator() ( ele)
inline

Member Data Documentation

template<typename T, typename CT = std::vector<T>>
CT casa::viewer::filter< T, CT >::cache
private
template<typename T, typename CT = std::vector<T>>
T casa::viewer::filter< T, CT >::comparitor
private
template<typename T, typename CT = std::vector<T>>
bool(filter<T,CT>::* casa::viewer::filter< T, CT >::op)(T)
private

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