Xmipp  v3.23.11-Nereus
Public Member Functions | Public Attributes | List of all members
CommentList Class Reference

#include <comment_list.h>

Public Member Functions

void addComment (const String &comment, int visible=0, bool wikiVerbatim=false)
 
void addComment (const char *comment, bool verbatim=false)
 
void clear ()
 
size_t size () const
 

Public Attributes

StringVector comments
 
std::vector< int > visibility
 
std::vector< bool > wikiVerbatim
 

Detailed Description

Just a class for holding comments

Definition at line 32 of file comment_list.h.

Member Function Documentation

◆ addComment() [1/2]

void CommentList::addComment ( const String comment,
int  visible = 0,
bool  wikiVerbatim = false 
)

Definition at line 28 of file comment_list.cpp.

29 {
30  comments.push_back(comment);
31  visibility.push_back(visible);
32  wikiVerbatim.push_back(verbatim);
33 }
std::vector< int > visibility
Definition: comment_list.h:36
std::vector< bool > wikiVerbatim
Definition: comment_list.h:37
StringVector comments
Definition: comment_list.h:35

◆ addComment() [2/2]

void CommentList::addComment ( const char *  comment,
bool  verbatim = false 
)

Definition at line 34 of file comment_list.cpp.

35 {
36  size_t t=0;
37  while(comment[t]=='+' && comment[t]!='\0')
38  t++;
39  addComment(comment+t,t,verbatim);
40 }
void addComment(const String &comment, int visible=0, bool wikiVerbatim=false)

◆ clear()

void CommentList::clear ( )

Definition at line 42 of file comment_list.cpp.

43 {
44  comments.clear();
45  visibility.clear();
46  wikiVerbatim.clear();
47 }
std::vector< int > visibility
Definition: comment_list.h:36
std::vector< bool > wikiVerbatim
Definition: comment_list.h:37
StringVector comments
Definition: comment_list.h:35

◆ size()

size_t CommentList::size ( ) const

Definition at line 48 of file comment_list.cpp.

49 {
50  return comments.size();
51 }
StringVector comments
Definition: comment_list.h:35

Member Data Documentation

◆ comments

StringVector CommentList::comments

Definition at line 35 of file comment_list.h.

◆ visibility

std::vector<int> CommentList::visibility

Definition at line 36 of file comment_list.h.

◆ wikiVerbatim

std::vector<bool> CommentList::wikiVerbatim

Definition at line 37 of file comment_list.h.


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