File: align.yo

package info (click to toggle)
bobcat 6.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,960 kB
  • sloc: cpp: 18,954; fortran: 5,617; makefile: 2,787; sh: 659; perl: 401; ansic: 26
file content (108 lines) | stat: -rw-r--r-- 3,509 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
includefile(include/header)

COMMENT(manpage, section, releasedate, archive, short name)
manpage(FBB::Align)(3bobcat)(_CurYrs_)(libbobcat-dev__CurVers_)
                    (Table Element Alignment)

manpagename(FBB::Align)(Class to align elements in Table objects)

manpagesynopsis()
    bf(#include <bobcat/align>)nl()

    Linking option: tt(-lbobcat)

manpagedescription()
    This class defines objects used by the class bf(FBB::Table) to define
the alignment of its columns and/or elements.

includefile(include/namespace)

manpagesection(INHERITS FROM)
    -

manpagesection(ADDITIONAL TYPEDEF)

    The type bf(FBB::Manipulator) can be used as a shorthand for
            verb(
        std::ios_base &(*)(std::ios_base &)
            )
    which is the prototype of standard io-manipulators like tt(std::left).

manpagesection(MANIPULATOR)
    The following manipulator (not part of the bf(FBB::Align), class but
defined in the tt(FBB) namespace) can be specified as tt(Align)-object
constructor arguments and can be stored in tt(Align) objects through, e.g.,
tt(setManip):
    itemization(
    itb(FBB::center)
    )

manpagesection(CONSTRUCTORS)
    itemization(
    itb(Align(Manipulator manip)) This constructor is used to specify
        an alignment which, when inserted into a tt(Table), is used for all
        the table's elements. This general alignment type may be modified of
        specific columns and/or elements using the following constructors;

    itb(Align(size_t column = 0, Manipulator manip = std::right))
       This constructor defines how the content of column `tt(column)' of a
        tt(Table) object are aligned. When used, it is the responsibility of
        the programmer to ensure that the table's column exists (i.e., the
        tt(Table) must have a column index tt(column));

    itb(Align(int row, size_t column, Manipulator manip))
       This constructor defines the alignment of element tt([row][column]) of
        a tt(Table) object. Before using this constructor table element
        tt([row][column]) must have been defined. E.g.,
       verb(
    Table tab{  3, Table::ROWWISE };
    tab << "xx00x " << " x01x " << " x02xx" <<
            10 << 11 << 12;

    tab << Align(1, 1, FBB::center);
       )
    )

    Copy and move constructors (and assignment operators) are available.

manpagesection(OVERLOADED OPERATORS)

    itemization(
    itb(operator size_t() const)
       Returns the value representing a requested width of an element in a
        tt(Table) object.
    )


manpagesection(MEMBER FUNCTIONS)
    itemization(
    itb(size_t col() const)
       Returns the object's column index;
    itb(bool hasRow() const)
       Returns tt(true) if the object's tt(row()) member returns a sensible
        value;
    itb(size_t row+nop()() const)
       Returns the object's row index;
    itb(Manipulator manip() const)
       Returns the tt(Manipulator) stored in the object;
    itb(void setWidth(size_t width))
       Defines the field-width of element(s) of a tt(Table) object to which
        the tt(Align) object refers;
    itb(void setManip(Manipulator manip))
       Changes the object's currently stored tt(Manipulator).
    )

manpagesection(EXAMPLE)
    See the bf(table)(3bobcat) man-page.

manpagefiles()
    em(bobcat/align) - defines the class interface

manpageseealso()
    bf(bobcat)(7), bf(csvtable)(3bobcat), bf(manipulator)(3bobcat),
    bf(table)(3bobcat) 

manpagebugs()
    None Reported.

includefile(include/trailer)