OpenDDS  Snapshot(2023/04/28-20:55)
Public Types | Public Member Functions | Public Attributes | List of all members
Intro Struct Reference

#include <dds_generator.h>

Collaboration diagram for Intro:
Collaboration graph
[legend]

Public Types

typedef std::set< std::string > LineSet
 
typedef std::vector< std::string > LineVec
 

Public Member Functions

void join (std::ostream &os, const std::string &indent)
 
void insert (const std::string &line)
 
void insert (const Intro &other)
 

Public Attributes

LineSet line_set
 
LineVec line_vec
 

Detailed Description

Definition at line 761 of file dds_generator.h.

Member Typedef Documentation

◆ LineSet

typedef std::set<std::string> Intro::LineSet

Definition at line 762 of file dds_generator.h.

◆ LineVec

typedef std::vector<std::string> Intro::LineVec

Definition at line 764 of file dds_generator.h.

Member Function Documentation

◆ insert() [1/2]

void Intro::insert ( const std::string &  line)
inline

Definition at line 774 of file dds_generator.h.

775  {
776  if (line_set.insert(line).second) {
777  line_vec.push_back(line);
778  }
779  }
LineSet line_set
LineVec line_vec

◆ insert() [2/2]

void Intro::insert ( const Intro other)
inline

Definition at line 781 of file dds_generator.h.

References deepest_named_type(), field_type_name(), OpenDDS::DCPS::insert(), and line_vec.

782  {
783  for (LineVec::const_iterator i = other.line_vec.begin(); i != other.line_vec.end(); ++i) {
784  insert(*i);
785  }
786  }
void insert(const std::string &line)
LineVec line_vec

◆ join()

void Intro::join ( std::ostream os,
const std::string &  indent 
)
inline

Definition at line 767 of file dds_generator.h.

Referenced by marshal_generator::gen_enum(), marshal_generator::gen_struct(), marshal_generator::gen_typedef(), and generateCaseBody().

768  {
769  for (LineVec::iterator i = line_vec.begin(); i != line_vec.end(); ++i) {
770  os << indent << *i << '\n';
771  }
772  }
LineVec line_vec

Member Data Documentation

◆ line_set

LineSet Intro::line_set

Definition at line 763 of file dds_generator.h.

◆ line_vec

LineVec Intro::line_vec

Definition at line 765 of file dds_generator.h.

Referenced by insert().


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