ct_common  1.0.1
Common library for combinatorial testing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
ct::common::Tuple Class Reference

#include <tuple.h>

Inheritance diagram for ct::common::Tuple:
ct::common::Assignment

List of all members.

Public Member Functions

 Tuple (void)
 Tuple (const Tuple &from)
 Tuple (const std::vector< PVPair > &from)
Tupleoperator= (const Tuple &right)
 ~Tuple (void)
virtual bool IsContainParam (std::size_t pid) const
virtual std::size_t GetValue (std::size_t pid) const
virtual bool IsSubAssignmentOf (const Assignment &asignment) const
std::vector< std::size_t > get_rel_pids (void) const
void Sort (void)
const PVPairSearch (std::size_t pid) const
bool to_the_next_tuple (std::vector< boost::shared_ptr< ct::common::ParamSpec > > param_specs)
bool to_the_next_tuple_with_ivld (std::vector< boost::shared_ptr< ct::common::ParamSpec > > param_specs)
bool operator== (const Tuple &right) const
bool operator< (const Tuple &right) const

Detailed Description

The class for tuples

Definition at line 28 of file tuple.h.


Constructor & Destructor Documentation

Tuple::Tuple ( void  )

Definition at line 19 of file tuple.cpp.

Tuple::Tuple ( const Tuple from)

Definition at line 23 of file tuple.cpp.

Tuple::Tuple ( const std::vector< PVPair > &  from) [explicit]

Definition at line 27 of file tuple.cpp.

Tuple::~Tuple ( void  )

Definition at line 37 of file tuple.cpp.


Member Function Documentation

std::vector< std::size_t > Tuple::get_rel_pids ( void  ) const

Get the set of related pids

Definition at line 40 of file tuple.cpp.

std::size_t Tuple::GetValue ( std::size_t  pid) const [virtual]

return the value for the given pid

Implements ct::common::Assignment.

Definition at line 160 of file tuple.cpp.

bool Tuple::IsContainParam ( std::size_t  pid) const [virtual]

whether the assignment contains a parameter

Implements ct::common::Assignment.

Definition at line 156 of file tuple.cpp.

bool Tuple::IsSubAssignmentOf ( const Assignment assignment) const [virtual]

check the assignment is a sub-assignment of another one

Implements ct::common::Assignment.

Definition at line 81 of file tuple.cpp.

bool Tuple::operator< ( const Tuple right) const

Definition at line 48 of file tuple.cpp.

Tuple & Tuple::operator= ( const Tuple right)

Definition at line 31 of file tuple.cpp.

bool Tuple::operator== ( const Tuple right) const

Definition at line 65 of file tuple.cpp.

const PVPair * Tuple::Search ( std::size_t  pid) const

Search for the PVPair for a given pid. The tuple need to be sorted in advance. The returned pointer is weak and should not be deleted.

Definition at line 91 of file tuple.cpp.

void Tuple::Sort ( void  )

Sort the pvpairs

Definition at line 77 of file tuple.cpp.

bool Tuple::to_the_next_tuple ( std::vector< boost::shared_ptr< ct::common::ParamSpec > >  param_specs)

For iterating tuples. Go to the next tuple, returns false if overflows

Definition at line 114 of file tuple.cpp.

bool Tuple::to_the_next_tuple_with_ivld ( std::vector< boost::shared_ptr< ct::common::ParamSpec > >  param_specs)

For iterating tuples. Go to the next tuple (considering invalid values), returns false if overflows

Definition at line 135 of file tuple.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines