KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Null_semantic_event.h
Go to the documentation of this file.
1 #ifndef NULL_SEMANTIC_EVENT_H_
2 #define NULL_SEMANTIC_EVENT_H_
3 
12 #include "semantics/Event_traits.h"
13 
14 namespace semantics
15 {
17  {
18  public:
20 
22  {
23  return boost::make_shared<Null_semantic_event>();
24  }
25 
26  double log_probability(const bool&) const {return 0.0;}
27 
29 
31 
32  void print(std::ostream&) const {}
33 
34  void print_view_counts(std::ostream&) const {}
35 
36  void update_step(const Step_code_t&) {};
37 
38  const Key_slots::Map& var_map() const
39  {
41  }
42  };
43 };
44 
45 #endif
void print(std::ostream &) const
display this node's data in human readable form
Definition: Null_semantic_event.h:32
const Key_slots::Map & var_map() const
return reference to the map between variable names and positions
Definition: Null_semantic_event.h:38
Definition: Semantic_step_event.h:15
void update_step(const Step_code_t &)
Definition: Null_semantic_event.h:36
Semantic_step_event::Event_ptr get_a_copy(bool) const
Definition: Null_semantic_event.h:21
boost::shared_ptr< Semantic_step_event > Event_ptr
Definition: Semantic_step_event.h:18
Definition: Null_semantic_event.h:16
void resample_table_assignments()
resample CRP table assignments for all component event views
Definition: Null_semantic_event.h:30
Null_semantic_event()
Definition: Null_semantic_event.h:19
void update_event_views()
update event views
Definition: Null_semantic_event.h:28
boost::bimap< int, std::string > Map
Definition: Event_traits.h:34
double log_probability(const bool &) const
compute log probability of this event
Definition: Null_semantic_event.h:26
Code
Definition: SemanticIO.h:54
static const Key_slots::Map variable_map
Definition: Event_traits.h:275
void print_view_counts(std::ostream &) const
pure virtual dummy — instantiated versions display count data
Definition: Null_semantic_event.h:34