This file is indexed.

/usr/include/BALL/CONCEPT/selectable.h is in libball1.4-dev 1.4.1+20111206-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: selectable.h,v 1.20 2005/12/23 17:01:41 amoll Exp $
//

#ifndef BALL_CONCEPT_SELECTABLE_H
#define BALL_CONCEPT_SELECTABLE_H

#ifndef BALL_COMMON_H
#	include <BALL/common.h>
#endif

#ifndef BALL_CONCEPT_PERSISTENTOBJECT_H
#	include <BALL/CONCEPT/persistentObject.h>
#endif

#define BALL_SELECTABLE_DEFAULT_SELECTION   false

namespace BALL 
{

	/** Selectable Concept.
			Selectable implements the ability of objects to be selected.
			It is used in the BALL kernel to mark parts of the kernel
			objects for special operations. In principle, Selectable
			provides a boolean flag and defines an interface to access
			this flag. \par

			<b>Interface:</b> Storable
			 \par
			
			 \par
			 \ingroup ConceptsMiscellaneous
	*/
	class BALL_EXPORT Selectable
	{
		public:

		/**	@name	Constructors and Destructors 
		*/
		//@{

		/**	Default Constructor.
				Creates a new selectable object and sets its state to unselected.
		*/
		Selectable()
			;
			
		/**	Copy constructor.
				Creates a copy of selectable object.
				@param	selectable the Selectable object to be copied
				@param	deep ignored
		*/
		Selectable(const Selectable& selectable, bool deep = true)
			;
			
		/**	Destructor.
				The destructor has no functionality.
		*/
		virtual ~Selectable()
			;

		/**	Clear the selection flag.
				Clear resets the selection flag to unselected.
		*/
		virtual void clear()
			;
		
		//@}

		/**	@name	Assignment 
		*/
		//@{

		/**	Assign the contents of another selectable object to this object.
				@param selectable the object whose contents are to be copied
				@param deep ignored
		*/
		void set(const Selectable& selectable, bool deep = true)
			;

		/**	Assignment operator.
				Assigns the contents of another Selectable object
				to this object.
				@param selectable the object to be copied
		*/
		const Selectable& operator = (const Selectable& selectable)
			;
		
		/**	Copy the contents of this object into another.
				@param selectable the object to be assigned to
				@param deep ignored
		*/
		void get(Selectable& selectable, bool deep = true) const
			;

		/**	Swap the contents of two objects.
				@param selectable the object to swap contents with
		*/
		void swap(Selectable& selectable)
			;
		//@}

		/**	Accessors
		*/
		//@{
		
		/**	Select the object.
				The internal flag is set to <b>true</b>.
		*/
		virtual void select()
			;

		/**	Deselect the object.
				The internal flag is set to <b>false</b>.
		*/
		virtual void deselect()
			;

		/** For faster access 
		 */
		virtual void setSelected(bool selected)
			 { selected_ = selected; }

		//@}
		/**	@name Predicates 
		*/
		//@{

		/**	Get the object state.
				@return bool <b>true</b>, if the object is selected, <b>false</b> otherwise
		*/
		bool isSelected() const
			;

		/** Equality operator
		*/
		bool operator == (const Selectable& selectable) const 
			;

		/** Inequality operator
		*/
		bool operator != (const Selectable& selectable) const 
			;

		//@}

		/**	@name Storable interface.
		*/
		//@{

		/**	Persistent stream writing.
				This method writes a boolean variable to the
				persistent stream using the <tt>writePrimitive</tt> method
				of the PersistenceManager.
				@param pm the persistence manager
		*/
		void write(PersistenceManager& pm) const
			;

		/** Persistent stream reading.
				This method reads a boolean variable from the
				persistent stream using the <tt>readPrimitive</tt> method
				of the PersistenceManager.
				@param pm the persistence manager
		*/
		bool read(PersistenceManager& pm)
			;

		//@}
		/**	@name Debugging and Diagnostics 
		*/
		//@{
		
		///
		virtual void dump(::std::ostream& s = std::cout, Size depth = 0) const
			;

		//@}
	
		protected:

		bool selected_;
	};

#	ifndef BALL_NO_INLINE_FUNCTIONS
#		include <BALL/CONCEPT/selectable.iC>
#	endif

} // namespace BALL

#endif // BALL_CONCEPT_SELECTABLE_H