KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Friends | List of all members
kjb::bbb::Description Class Reference

#include <bbb_description.h>

Public Types

typedef std::multimap< const
Intentional_activity
*, Activity_sequence
Act_tree
 

Public Member Functions

 Description (size_t start, size_t end, const Traj_set &trajs)
 Create a descrpition with the given end times. More...
 
 Description (const Intentional_activity &root)
 Create a descrpition which is forced to be of the given kind. More...
 
 Description (const Description &desc)
 Copy constructor: deep copy. More...
 
Descriptionoperator= (const Description &desc)
 Assignment: deep copy. More...
 
void clear (const Intentional_activity &root)
 Resets this description and sets the given IA as root. More...
 
const Activity_sequenceadd_child_sequence (const Intentional_activity *act, const Activity_sequence &aseq)
 Add an activity sequence as a child of an IA. More...
 
size_t start () const
 Get the start time of this description. More...
 
size_t end () const
 Get the end time of this description. More...
 
const Intentional_activityroot_activity () const
 Get the root activity of this description. More...
 
std::pair
< Act_tree::const_iterator,
Act_tree::const_iterator > 
children (const Intentional_activity &act) const
 Get the the children of a given IA node. More...
 
template<class Iter >
void physical_activities (Iter out, const std::string &name="") const
 Get all the phsical activities of this description. More...
 
template<class Iter >
void intentional_activities (Iter out, const std::string &name="") const
 Get all the phsical activities of this description. More...
 
template<class A , class OutIt >
void ancestors (const A &act, OutIt result, int max_depth=-1) const
 Get the ancestors of the given activity. More...
 
bool is_root (const Physical_activity &) const
 Return true if the given activity is the root. More...
 
bool is_root (const Intentional_activity &act) const
 Return true if the given activity is the root. More...
 
template<class A >
bool contains (const A &act_p) const
 Checks whether the given activity is contained (by address) in this description. More...
 

Friends

std::ostream & operator<< (std::ostream &, const Description &)
 Push an description to an output stream. More...
 
Data sample (const Likelihood &likelihood, const Description &desc)
 Sample data from likelihood, given a description. More...
 

Detailed Description

Class represents the description of a video.

Member Typedef Documentation

Constructor & Destructor Documentation

kjb::bbb::Description::Description ( size_t  start,
size_t  end,
const Traj_set trajs 
)
inline

Create a descrpition with the given end times.

kjb::bbb::Description::Description ( const Intentional_activity root)
inline

Create a descrpition which is forced to be of the given kind.

kjb::bbb::Description::Description ( const Description desc)
inline

Copy constructor: deep copy.

Member Function Documentation

const Activity_sequence* kjb::bbb::Description::add_child_sequence ( const Intentional_activity act,
const Activity_sequence aseq 
)
inline

Add an activity sequence as a child of an IA.

template<class A , class OutIt >
void kjb::bbb::Description::ancestors ( const A &  act,
OutIt  result,
int  max_depth = -1 
) const

Get the ancestors of the given activity.

std::pair<Act_tree::const_iterator, Act_tree::const_iterator> kjb::bbb::Description::children ( const Intentional_activity act) const
inline

Get the the children of a given IA node.

void kjb::bbb::Description::clear ( const Intentional_activity root)
inline

Resets this description and sets the given IA as root.

template<class A >
bool kjb::bbb::Description::contains ( const A &  act_p) const

Checks whether the given activity is contained (by address) in this description.

size_t kjb::bbb::Description::end ( ) const
inline

Get the end time of this description.

template<class Iter >
void kjb::bbb::Description::intentional_activities ( Iter  out,
const std::string &  name = "" 
) const

Get all the phsical activities of this description.

bool kjb::bbb::Description::is_root ( const Physical_activity ) const
inline

Return true if the given activity is the root.

bool kjb::bbb::Description::is_root ( const Intentional_activity act) const
inline

Return true if the given activity is the root.

Description& kjb::bbb::Description::operator= ( const Description desc)
inline

Assignment: deep copy.

template<class Iter >
void kjb::bbb::Description::physical_activities ( Iter  out,
const std::string &  name = "" 
) const

Get all the phsical activities of this description.

const Intentional_activity& kjb::bbb::Description::root_activity ( ) const
inline

Get the root activity of this description.

size_t kjb::bbb::Description::start ( ) const
inline

Get the start time of this description.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Description  
)
friend

Push an description to an output stream.

Data sample ( const Likelihood likelihood,
const Description desc 
)
friend

Sample data from likelihood, given a description.


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