Skip to content

Commit 03aa237

Browse files
authored
Merge pull request #63 from jhlegarreta/ChangeDeletedFunctionsToPublicSection
DOC: Move the ITK_DISALLOW_COPY_AND_ASSIGN to public section.
2 parents 7b14938 + c0ac858 commit 03aa237

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,6 +2616,8 @@ \subsection{Empty Lines}
26162616
public ImageToImageFilter< TInputImage, TOutputImage >
26172617
{
26182618
public:
2619+
ITK_DISALLOW_COPY_AND_ASSIGN(BoxImageFilter);
2620+
26192621
/** Standard class type alias. */
26202622
using Self = BoxImageFilter;
26212623
using Superclass = ImageToImageFilter< TInputImage, TOutputImage >;
@@ -2632,8 +2634,6 @@ \subsection{Empty Lines}
26322634
void PrintSelf(std::ostream & os, Indent indent) const override;
26332635
26342636
private:
2635-
ITK_DISALLOW_COPY_AND_ASSIGN(BoxImageFilter);
2636-
26372637
RadiusType m_Radius;
26382638
};
26392639
@@ -3038,6 +3038,8 @@ \section{Using Standard Macros}
30383038
\item Object modified time is properly managed.
30393039
\item Debug information is printed.
30403040
\item Reference counting is handled properly.
3041+
\item Disallow copy semantics by deleting copy constructor and assignment
3042+
operator.
30413043
\end{itemize}
30423044
30433045
Some of the more important object macros are:
@@ -3048,6 +3050,9 @@ \section{Using Standard Macros}
30483050
\item \code{itkTypeMacro(thisClass, superclass)}: Adds standard methods a
30493051
class, mainly type information. Adds the \code{GetNameOfClass()} method to the
30503052
class.
3053+
\item \code{ITK\_DISALLOW\_COPY\_AND\_ASSIGN(TypeName)}: Disallow copying by
3054+
declaring copy constructor and assignment operator deleted. This must be
3055+
declared in the \textbf{public} section.
30513056
\item \code{itkDebugMacro(x)}: If debug is set on a subclass of
30523057
\doxygen{Object}, prints debug information to the appropriate output
30533058
stream.

0 commit comments

Comments
 (0)