GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::comment_elt Class Reference

#include "comment-list.h"

Collaboration diagram for octave::comment_elt:

Public Types

enum  comment_type {
  unknown, block, full_line, end_of_line,
  doc_string, copyright
}
 

Public Member Functions

 comment_elt (const std::string &s="", comment_type t=unknown)
 
 comment_elt (const comment_elt &oc)
 
 ~comment_elt (void)=default
 
comment_eltoperator= (const comment_elt &oc)
 
std::string text (void) const
 
comment_type type (void) const
 

Private Attributes

std::string m_text
 
comment_type m_type
 

Detailed Description

Definition at line 40 of file comment-list.h.

Member Enumeration Documentation

◆ comment_type

Enumerator
unknown 
block 
full_line 
end_of_line 
doc_string 
copyright 

Definition at line 45 of file comment-list.h.

Constructor & Destructor Documentation

◆ comment_elt() [1/2]

octave::comment_elt::comment_elt ( const std::string s = "",
comment_type  t = unknown 
)
inline

Definition at line 55 of file comment-list.h.

◆ comment_elt() [2/2]

octave::comment_elt::comment_elt ( const comment_elt oc)
inline

Definition at line 58 of file comment-list.h.

◆ ~comment_elt()

octave::comment_elt::~comment_elt ( void  )
default

Member Function Documentation

◆ operator=()

comment_elt& octave::comment_elt::operator= ( const comment_elt oc)
inline

Definition at line 61 of file comment-list.h.

References m_text, and m_type.

◆ text()

std::string octave::comment_elt::text ( void  ) const
inline

Definition at line 72 of file comment-list.h.

Referenced by octave::tree_print_code::print_comment_elt().

◆ type()

comment_type octave::comment_elt::type ( void  ) const
inline

Definition at line 74 of file comment-list.h.

Member Data Documentation

◆ m_text

std::string octave::comment_elt::m_text
private

Definition at line 81 of file comment-list.h.

Referenced by operator=().

◆ m_type

comment_type octave::comment_elt::m_type
private

Definition at line 84 of file comment-list.h.

Referenced by operator=().


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